<?php
header("content-type:text/html;charset:utf-8");
require_once 'class/function.php';
$view = new view();
if (!isset($_GET['p'])||!isset($_GET['t'])||!isset($_GET['u'])) {
  $view->index();
}elseif(isset($_GET['p'])){
  $id = $_GET['p'];
  $view->post($id);
}
?>
